﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Should;

namespace NGeo.Yahoo.PlaceFinder
{
    [TestClass]
    public class ConsumePlaceFinderTests
    {
        [TestMethod]
        public void Yahoo_PlaceFinder_Geocode_ShouldBeInterfaceMethod()
        {
            var contract = new Mock<IConsumePlaceFinder>();
            contract.Setup(m => m.Geocode(It.IsAny<Request>()))
                .Returns(new Results());
            var results = contract.Object.Geocode(null);
            results.ShouldNotBeNull();
        }

        [TestMethod]
        public void Yahoo_PlaceFinder_ReverseGeocode_ShouldBeInterfaceMethod()
        {
            var contract = new Mock<IConsumePlaceFinder>();
            contract.Setup(m => m.ReverseGeocode(It.IsAny<ReverseRequest>()))
                .Returns(new Results());
            var result = contract.Object.ReverseGeocode(null);
            result.ShouldNotBeNull();
        }

    }
}
